package com.spark.starter.prop;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author sc
 * @DATE 2024/6/4 23:22
 * @Description:
 * @Version 1.0
 */
@Data
@ConfigurationProperties("tools.ip")
@Component
public class IpStarterProperties {

    private String display = DisplayMode.SIMPLE.value;

    public enum DisplayMode{

        SIMPLE("simple"),

        DETAIL("detail");

        private String value;

        public String getVlaue() {
            return value;
        }

        DisplayMode(String value) {
            this.value = value;
        }
    }

}
